/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ggsoft.timetracker.service;

import com.ggsoft.timetracker.domain.Department;
import com.ggsoft.timetracker.domain.Employee;
import com.ggsoft.timetracker.domain.Timecard;
import java.util.Date;
import java.util.List;
import org.appfuse.model.User;

/**
 *
 * @author giovanella
 * @date May 17, 2014
 */
public interface TimeTrackerService {
    void punchTimeCard(User user, String status, String reason, String station);
    void fixTimeCard(Timecard timeCard);
    void findTimeCardsPerEmployee(Employee employee);
    Employee getEmployeeById(Long id);
    Employee getEmployeeByUser(User user);
    List<Department> getDepartmentList();
    List<Timecard> findTimecards(User user, String status, Date date);
    Timecard findTimecard(Long id);
    void saveTimecard(Timecard timecard);
    boolean validateIp(String currentIp, String allowedIps);
}
